<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">











<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Maven - </title>
    <style type="text/css" media="all">
      @import url("./css/maven-base.css");
      @import url("./css/maven-theme.css");
      @import url("./css/site.css");
    </style>
    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
      </head>
  <body class="composite">
    <div id="banner">
                  <a href="http://maven.apache.org/" id="bannerLeft">
    
                                    <img src="http://maven.apache.org/images/apache-maven-project.png" alt="" />
    
            </a>
                          <span id="bannerRight">
    
                                    <img src="http://maven.apache.org/images/maven-small.gif" alt="" />
    
            </span>
            <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="breadcrumbs">
          
  

  
    
  
  
    
            <div class="xleft">
        Last Published: 2009-10-30
                      </div>
            <div class="xright">            <a href="http://www.apache.org/" class="externalLink">Apache</a>
            |
                <a href="http://maven.apache.org/" class="externalLink">Maven 1.0</a>
            |
                <a href="http://maven.apache.org/maven2/" class="externalLink">Maven 2</a>
            
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="leftColumn">
      <div id="navcolumn">
           
  

  
    
  
  
    
                   <h5>Main</h5>
            <ul>
              
    <li class="none">
                    <a href="5steps.html">5 Steps to create a Calm-enabled Google Code project</a>
          </li>
              
    <li class="none">
              <strong>Usage</strong>
        </li>
              
    <li class="none">
                    <a href="faq.html">FAQ</a>
          </li>
              
    <li class="none">
                    <a href="links.html">Links</a>
          </li>
          </ul>
              <h5>Project Documentation</h5>
            <ul>
              
                
              
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
              
        <li class="collapsed">
                    <a href="project-info.html">Project Information</a>
                </li>
          </ul>
                                           <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
            <img alt="Built by Maven" src="./images/logos/maven-feather.png"></img>
          </a>
                       
  

  
    
  
  
    
        </div>
    </div>
    <div id="bodyColumn">
      <div id="contentBox">
        <div class="source"><pre>Use it!</pre>
</div>
<div class="section"><h2>TODO : there's a bug in the maven-site-plugin: you must have src/site/resources/css/site.css as a non-empty file, otherwise it will fail during the site-deploy execution (HTTP Error 400.. bah)</h2>
</div>
<div class="section"><h2>TODO : at the moment the content in /svn/m2/site is not shown as correct HTML</h2>
</div>
<div class="section"><h2>- mvn clean deploy site site-deploy [Will deploy a snapshot artifact in your repository and the site in /svn/m2/site]</h2>
</div>
<div class="section"><h2>- mvn release:prepare release:perform [ Will - prompt you the version to tag and the next SNAPSHOT version to set on the trunk - create the tag with the prompted version - build and deploy the artifact on the releases repository (/svn/m2/releases) - Deploy the site - ... any other goal defined in <i>maven.release.goals</i> - Update the version on the trunk - Update your local copy with the new trunk ]</h2>
<div class="source"><pre>If it's a webapp ....</pre>
</div>
</div>
<div class="section"><h2>- mvn clean package jetty:run [Runs your webapp locally; you can alternatively use jetty:run-war or jetty:run-exploded]</h2>
</div>
<div class="section"><h2>- mvn clean package -P tomcat [Builds an Apache Tomcat 6.0.20 distribution in your target directory; this can be very handy in order to provide production-ready bundles of your application]</h2>
</div>
<div class="section"><h2>- mvn clean integration-test -Pselenium [the Selenium tests must be in a **/selenium/** package]</h2>
</div>
<div class="section"><h2>- mvn clean package cargo:deployer-redeploy [Will use the maven.j2ee-deploy.** property set to deploy your webapp on a remote Tomcat Manager]</h2>
<div class="source"><pre>Customize it</pre>
</div>
</div>
<div class="section"><h2>To see the properties that you can override you can just see the pom.xml definition of maven-calm!</h2>
</div>
<div class="section"><h2>http://maven-calm.googlecode.com/svn/m2/releases/com/sourcesense/maven/maven-calm/1.0-beta-21/maven-calm-1.0-beta-21.pom</h2>
</div>
<div class="section"><h2>Using property overriding you can:</h2>
</div>
<div class="section"><h2>- Customize the behavior by setting different property values, i.e. by defining <i>maven.release.goals</i>install deploy site-deploy cargo:deployer-redeploy<i>/maven.release.goals</i> you can deploy your webapp on a remote Tomcat Manager instance during the release process (see mvn release:prepare release:perform)</h2>
</div>
<div class="section"><h2>- Overriding plugin versions (see plugin.**.version property set in the pom)</h2>
</div>
<div class="section"><h2>- Override any other plugin configuration property (i.e. eclipse.downloadSources = false)</h2>
</div>

      </div>
    </div>
    <div class="clear">
      <hr/>
    </div>
    <div id="footer">
      <div class="xright">&#169;  
          2009
    
          
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
  </body>
</html>
